<?php
include_once "soar/web.inc";

function main()
{/*{{{*/
    $svcenv=new svcenv();

    $svcenv->begin();     // unnecessary in lite
    $request="";
    para::put_item($request, "@00000000001");
    if(($res=$svcenv->call("HELLO", $request, $respond)) == false)
    {
        echo "call svcenv fail\n";
        $svcenv->abort(); // unnecessary in lite
        $svcenv->close();
        return 1;
    }
    echo "$respond\n";
    $curr=0;
    while(!is_null($item=para::get_item($respond, $curr)))
    {
        echo "$item\n";
    }
    $svcenv->commit();    // unnecessary in lite

    $svcenv->close();

    return 0;
}/*}}}*/

main();
?>
